import java.util.concurrent.locks.LockSupport;

/**
 * @description:
 * @author: asd
 * @time: 2022/10/7 1:03
 */
public class demo3 implements Runnable{
    @Override
    public void run() {
        while(true){
            System.out.println("你搁那摆烂是把");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("都摆了一天了该卷了");
            LockSupport.park();
        }
    }

    public static void main(String[] args) {
        demo3 demo = new demo3();
        Thread tt = new Thread(demo);
        tt.start();
        LockSupport.unpark(tt);
    }
}
